package com.mooneil.sadness.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.mooneil.sadness.dao.GuestbookDAO;
import com.mooneil.sadness.domain.GuestbookArticle;

@Service
public class GuestbookServiceImpl implements GuestbookService {

	@Autowired
	private GuestbookDAO guestbookDAO;

	@Override
	public List<GuestbookArticle> getGuestbookArticleList() {
		return guestbookDAO.getGuestbookArticleList();
	}

	@Override
	public void addGuestbookArticle(GuestbookArticle guestbookArticle) {
		guestbookDAO.addGuestbookArticle(guestbookArticle);
	}

}
